#ifndef __PT_INFO_H__
#define __PT_INFO_H__

#include "sys_port.h"

#ifdef __cplusplus
extern "C" 
{
#endif
//*****************************************************

#define NOT_GET_VAL -99

//与weather_type_icon对应
typedef enum
{
    SUNNY = 0,
    CLOUDY,
    DREARY,
    FOG,
    RAIN_MODERATE,
    RAIN_STORM,
    RAIN_THUNDERSTORM,
    SNOW_MODERATE,
    SNOW_BLIZZARD,
    NIGHT1,
    WIND2
} weather_type_e;

typedef enum
{
    POLLUTE_TYPE_LEVEL1 = 0,

    POLLUTE_TYPE_LEVEL2,
    POLLUTE_TYPE_LEVEL3,
    POLLUTE_TYPE_LEVEL4,
    POLLUTE_TYPE_LEVEL5,

    POLLUTE_TYPE_LEVEL6,

} pollute_type_e;

typedef enum
{
    PT_THEME_WEATHER = 0,
    PT_THEME_DEVICE,

} pt_theme_e;

typedef struct 
{
    /* data */
    uint8_t weatherStatusIcon;
    uint8_t weatherIcon;
    char* weatherText;
} weather_stu;


int pt_temperature_get(void);
int pt_temperature_set(int val);

int pt_addr_set(char * str);
char* pt_addr_get(void);

int pt_year_get(void);
int pt_year_set(int val);

int pt_month_get(void);
int pt_month_set(int val);

int pt_day_get(void);
int pt_day_set(int val);

int pt_week_get(void);
int pt_week_set(int val);
char * pt_week_txt_get(int week_type);

int pt_hour_get(void);
int pt_hour_set(int val);
int pt_minute_get(void);
int pt_minute_set(int val);
int pt_sec_get(void);
int pt_sec_set(int val);
long pt_timestamp_set(long *val);
long pt_timestamp_get(void);

int pt_weather_get(void);
int pt_weather_set(int val);

int pt_pollute_get(void);
int pt_pollute_set(int val);

char * pt_weather_txt_get(int weather_type);
char * pt_weather_icon_get(int weather_type);
char * pt_pollute_txt_get(int pollute_level);
void get_sys_time(void);
void get_sys_date(void);
int pt_wkup_num_set(int val);
int pt_wkup_num_get(void);
char* pt_sn_set(char *sn_temp);
char* pt_sn_get(void);
int pt_flag_new_hand_get(void);
int pt_flag_new_hand_set(int val);
#if (CONFIG_SYS_CPU1)
uint8_t pt_home_theme_set(int val);
uint8_t pt_home_theme_get(void);
#endif
//*****************************************************
#ifdef __cplusplus
}
#endif


#endif
